<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'MyJsp.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="js/jquery-3.2.1.js"></script>
<script type="text/javascript"
	src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script>
<script type="text/javascript">
	function tijiao() {
		var neirong = editor.txt.html(); //获取富文本区域里面的文字
		$('#nbody').val(neirong);
	}
</script>
</head>



<body>
	<div class="col2" id="neirong">
	<c:if test="${jurisdiction==2}">
			<c:forEach items="${articlesList }" var="n" varStatus="status">
				<div class="col-md-4 col1">
					<figure class="effect-bubba"> <img class="img-responsive"
						src="ImgshowArticlesServlet?fileName=${n.articleAimgurl}" alt="" width="350" height="240" />
					<figcaption>
					<h4>${n.articleId }</h4>
					<p>随心看</p>
					</figcaption> </figure>
					<div class="clearfix"></div>
					<div class="effect-gird">
						<h3>
							<a href='ToArticlesInfoServlet?articleId=${n.articleId }'>${n.articleTitle }</a>
						</h3>
						<p>${n.userId.userName}</p>
					</div>
				</div>
			</c:forEach>

			<div class="clearfix"></div>
			<div style="width: 600px;height: 50px; margin: 0 auto ">
				<div style=" margin-left: 130px">
					<input type="button" onclick="shouB()" value="首页"> <input
						type="button" onclick="shangB(${index })" value="上一页"> <input
						type="button" onclick="xiaB(${index })" value="下一页"> <input
						type="button" onclick="weiB()" value="尾页"> <span>当前页数[${index }]&nbsp;&nbsp;总页数[${pagecount}]</span>
				</div>
			</div>
		</c:if>
		<c:if test="${jurisdiction==1}">
			<c:forEach items="${articlesList }" var="n" varStatus="status">
				<div class="col-md-4 col1">
					<figure class="effect-bubba"> <img class="img-responsive"
						src="ImgshowArticlesServlet?fileName=${n.articleAimgurl}" alt="" width="350" height="240" />
					<figcaption>
					<h4>${n.articleId }</h4>
					<p>随心看</p>
					</figcaption> </figure>
					<div class="clearfix"></div>
					<div class="effect-gird">
						<h3>
							<a href='ToArticlesInfoServlet?articleId=${n.articleId }'>${n.articleTitle }</a>
						</h3>
						<p>${n.userId.userName}</p>
					</div>
				</div>
			</c:forEach>

			<div class="clearfix"></div>
			<div style="width: 600px;height: 50px; margin: 0 auto ">
				<div style=" margin-left: 130px">
					<input type="button" onclick="shouA()" value="首页"> <input
						type="button" onclick="shangA(${index })" value="上一页"> <input
						type="button" onclick="xiaA(${index })" value="下一页"> <input
						type="button" onclick="weiA()" value="尾页"> <span>当前页数[${index }]&nbsp;&nbsp;总页数[${pagecount}]</span>
				</div>
			</div>
		</c:if>
		<c:if test="${jurisdiction==0}">
			<c:forEach items="${sceneryList }" var="n" varStatus="status">
				<div class="col-md-4 col1">
					<figure class="effect-bubba"> <img class="img-responsive"
						src="ImgshowArticlesServlet?fileName=${n.sceneryPhoto}" alt="" width="350" height="240" />
					<figcaption>
					<h4>${n.sceneryId }</h4>
					<p>随心看</p>
					</figcaption> </figure>
					<div class="clearfix"></div>
					<div class="effect-gird">
						<h3>
							<a
								href='SelectSceneryServlet?op=select3&articleId=${n.sceneryId }'>${n.sceneryName }</a>
						</h3>
					</div>
				</div>
			</c:forEach>

			<div class="clearfix"></div>
			<div style="width: 600px;height: 50px; margin: 0 auto ">
				<div style=" margin-left: 130px">
					<input type="button" onclick="shouC()" value="首页"> <input
						type="button" onclick="shangC(${index })" value="上一页"> <input
						type="button" onclick="xiaC(${index })" value="下一页"> <input
						type="button" onclick="weiC()" value="尾页"> <span>当前页数[${index }]&nbsp;&nbsp;总页数[${pagecount}]</span>
				</div>
			</div>
		</c:if>
	</div>
</body>
</html>
